PyBroMo - GUI Trajectory explorer

This notebook is part of [PyBroMo](http://tritemio.github.io/PyBroMo/) a python-based single-molecule Brownian motion diffusion simulator that simulates confocal [smFRET](http://en.wikipedia.org/wiki/Single-molecule_FRET) experiments. You can find the full list of notebooks in [Usage Examples](http://tritemio.github.io/PyBroMo/#usage-examples).

Overview

In this notebook implements an interactive 3-D trajectories visualizer. To visualize trajectories you need simulatte the trajectories first.

For more info see PyBroMo Homepage.

Simulation setup

Together with a few standard python libraries we import PyBroMo using the short name pbm. All PyBroMo functions will be available as pbm.something.


In [ ]:
%matplotlib inline
import numpy as np
import tables
import matplotlib.pyplot as plt
plt.rcParams['path.simplify_threshold'] = 1.0
import pybromo as pbm
print('Numpy version:', np.__version__)
print('Matplotlib version:', plt.matplotlib.__version__)
print('PyTables version:', tables.__version__)
print('PyBroMo version:', pbm.__version__)

Load trajectories


In [ ]:
#SIM_DIR = r'E:\Data\pybromo'

In [ ]:
S = pbm.ParticlesSimulation.from_datafile('016') #, path=SIM_DIR)

Plotting the emission


In [ ]:
%matplotlib qt

In [ ]:
p = pbm.plotter.EmissionPlotter(S, duration=0.1, decimate=100, color_pop=False)

For simulations using radial = False (i.e. the 3D trajectories saved):


In [ ]:
p = pbm.plotter.TrackEmPlotter(S, duration=0.005, decimate=20)

For simulations using radial = True (i.e. the z-r 2D trajectories saved):


In [ ]:
p = pbm.plotter.TrackEmPlotterR(S, duration=0.01, decimate=100)

In [ ]: